package com.baselibrary.test.ui;

import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import com.baselibrary.libs.Utils.dialog.DialogCallBack;
import com.baselibrary.libs.Utils.dialog.DialogUtils;
import com.baselibrary.libs.View.bar.initAction_Bar;
import com.baselibrary.libs.base.baseActivity.BaseActivity;
import com.baselibrary.test.R;

/**4
 * 弹出对话框activity
 */
public class Main4Activity extends BaseActivity {

    private initAction_Bar action_bar;
    private TextView tv;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }

    @Override
    public int getlayouXML() {
        return R.layout.activity_main4;
    }

    @Override
    public void initP() {

    }

    @Override
    public void initView() {

        action_bar = (initAction_Bar) findViewById(R.id.action_bar);

        action_bar.set_Title("弹出对话框");


        tv = (TextView) findViewById(R.id.tv);
        tv.setOnClickListener(new View.OnClickListener() {
           @Override
            public void onClick(View v) {
               DialogUtils.createDialogUtils(Main4Activity.this)
                       .setTitle("木有标题")
                       .setMessage("木有内容")
                       .show(0,new DialogCallBack() {
                           @Override
                           public void confirm(int type, int position) {

                           }

                           @Override
                           public void cancel() {

                           }
                       });
            }
        });

    }

    @Override
    public void initData() {

    }

    @Override
    public void initListener() {

    }
}
